package cn.hnvec.xiaohui;

import java.util.LinkedList;

public class ExampleText29 {

	public static void main(String[] args) {
		// TODO 自动生成的方法存根
 LinkedList linkedlist =  new LinkedList();
 linkedlist .add("namel");
 linkedlist .add("name2");
 linkedlist .add("name3");
 linkedlist .add("name4");
 System.out.println( linkedlist.toString());
 linkedlist.add(3,"name5");
 linkedlist.addFirst("name0");
 System.out.println(linkedlist);
 System.out.println(linkedlist.getFirst());
 linkedlist.remove(3);
 linkedlist.removeFirst();
 System.out.println("集合最后的结果"+linkedlist);
 System.out.println( "集合的长度"+linkedlist.size());
	}

}
